sometimes class adoption, as illustrated by this recipe, is the cleanest way out of class hierarchy problems that arise when you wish to avoid module interdependencies ( e . g ., within a layered architecture ) 當(dāng)您希望避免模塊間的相互依賴,有時(shí)類組合,就像處方中的例子,就是最簡(jiǎn)潔的方法來(lái)避免發(fā)生類繼承的問(wèn)題(比如,在分層的結(jié)構(gòu)中)。
especially to strategy and state, there are deeper discussions . aided with strategy, we not only get its initial purpose of encapsulating a series of complicated algorithms so they can replace each other, but also grasp another advantage that it helps resolve the multiple-hierarchy problem in designing objects 我們使用策略模式不僅達(dá)到了它的原始意圖??封裝一系列復(fù)雜算法,使它們可以相互替換,而且體會(huì)到了另外一種益處??它有助于解決設(shè)計(jì)對(duì)象過(guò)程中“多重繼承”的難題。
under the condition that the lower-layer elements and their dominating upper-layer elements are considered as the condition attributes and the decision attributes separately, the following problems are studied : refining of assessment index system, acquirement of index weight and the constructing of judgment matrix based on the reduction and the attribute importance theory in rough sets, which achieve the sufficiency use of field knowledge for analytical hierarchy process and decision support of the hierarchy problems for rough sets 摘要將層次分析模型中下層因素與支配它的上層因素分別視為條件屬性和決策屬性,借助粗糙集的約簡(jiǎn)和屬性重要性理論,研究了融合粗糙集的層次分析法的指標(biāo)體系的完善、指標(biāo)權(quán)重的確定、判斷矩陣的構(gòu)造等問(wèn)題,實(shí)現(xiàn)了層次分析法時(shí)領(lǐng)域知識(shí)的利用及粗糙集對(duì)層次結(jié)構(gòu)問(wèn)題的決策支持。